<?php
$rs_groups = groupList(39);
$row_rs_groups = mysql_fetch_assoc($rs_groups);
?>

<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
    <table align="center">
        <tr valign="baseline">
            <td align="right" valign="top" nowrap="nowrap">Group:</td>
            <td>
                <select name="group_id">
<?php
do {
?>
                    <option value="<?php echo $row_rs_groups['category_id'] ?>" ><?php echo $row_rs_groups['category_name'] ?></option>
<?php
                } while ($row_rs_groups = mysql_fetch_assoc($rs_groups));
?>
                </select>
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr valign="baseline">
            <td align="right" valign="top" nowrap="nowrap">Page:</td>
            <td><input type="text" name="content" value="" size="32"  onkeyup="if(this.value.length >0) getData('pages/searchrelatedpage.php?aj&c=content_id&rel='+this.value,'content_search');"/><div id="content_search"></div></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr valign="baseline">
            <td align="right" valign="top" nowrap="nowrap">Group member title:</td>
            <td><input type="text" name="group_member_title" value="" size="32" /></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr valign="baseline">
            <td align="right" valign="top" nowrap="nowrap">Group order:</td>
            <td><input type="text" name="group_order" value="" size="32" />
                [0-etc]</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr valign="baseline">
            <td nowrap="nowrap" align="right" valign="top">Description:</td>
            <td><textarea name="description" cols="50" rows="5"></textarea></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr valign="baseline">
            <td align="right" valign="top" nowrap="nowrap">Group direct link:</td>
            <td><input type="text" name="group_direct_link" value="" size="32" />
                [leave blank if none exist]</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr valign="baseline">
            <td align="right" valign="top" nowrap="nowrap">Group member resource:</td>
            <td><?php
                    $radioBtnName = "group_member_resource";$checked="";
                    include("images.php");
?></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr valign="baseline">
            <td align="right" valign="top" nowrap="nowrap">&nbsp;</td>
            <td><input type="submit" value="Add Group Member" /></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </table>
    <input type="hidden" name="MM_insert" value="groupAddFrm" />
</form>
<p>&nbsp;</p>